package com.baite.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author jinhui
 */ //@ResponseBody
@Controller
//@RestController
public class HelloController {

    @RequestMapping("/hello")
    @ResponseBody
    public String hello() {
        return "Hello world!";

    }
    @RequestMapping("/test")
    public String thymtest(Map<String,String> map){
        map.put("hello","你好！");
        return "test";
    }
}
